package com.md.one;

import java.util.Arrays;

public class wdnmd {

	public static void main(String[] args) {
		int a[]= {1,9,7,5,3};
		nb(a);
	}
	public static void wdnmd(int [] a) {
		int b=0;
		for (int i = 0; i < a.length; i++) {
			for (int j = 0; j < a.length-1-i; j++) {
				if (a[j]<a[j+1]) {
					b=a[j];
					a[j]=a[j+1];
					a[j+1]=b;
				}
			}
		}
		for (int j = 0; j < a.length; j++) {
			System.out.print(a[j]+" ");
		}
	}

}